
package com.hlkj.pay.vo.common.resp.token;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author HlpayTeam
 * @date 2024/09/17 12:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OauthTokenResp implements Serializable {

    private static final long serialVersionUID = -8907922247175135025L;

    /**
     * 访问令牌
     */
    @Schema(description = "访问令牌")
    private String token;

    /**
     * 刷新令牌
     */
    @Schema(description = "刷新令牌")
    private String refreshToken;

    /**
     * 刷新令牌
     */
    private String tokenHead;

    /**
     * 过期时间
     */
    @Schema(description = "过期时间")
    private Long expiresTime;

    /**
     * 过期时间
     */
    private int expiresIn;

    /**
     * 多因子登录 1 是 0 否
     */
    @Schema(description = "多因子登录 1 是 0 否")
    private Integer mfaLoginType;

    /**
     * 失败错误次数
     */
    @Schema(description = "失败错误次数")
    private Integer errorNum;
}
